"""
        登录页面
"""
import time

from Base.Base import Base
from selenium.webdriver.common.by import By

class Page1(Base):
    # 账号
    username_loc = (By.NAME,'loginName')
    # 密码
    password_loc = (By.NAME,'roncooPwd')
    # 点击登录
    login_button_loc = (By.CLASS_NAME,'sub')

    def username(self):
        self.input_text(self.username_loc,'admin')

    def password(self):
        self.input_text(self.password_loc,'123456',10)

    def login_button(self):
        self.click(self.login_button_loc,3)


    def login_longguo_001(self):
        self.open_url('http://39.96.200.22:7009/roncoo-pay-web-boss/login')
        self.username()
        self.password()
        self.login_button()
        time.sleep(10)